package org.gangcai.mac.shop.bean;

import java.util.List;

/**
 * Created by mac on 2018/4/11.
 */

public class OrderBean extends CommonResonseBean {

    private List<InfoBean> info;

    public List<InfoBean> getInfo() {
        return info;
    }

    public void setInfo(List<InfoBean> info) {
        this.info = info;
    }

    public static class InfoBean {
        /**
         * order_id : 3
         * img : Public/Uploads/5abc9216607d4.png
         * goods_name : Apple iPhone X (A1865) 256GB 深空灰色 移动联通电信4G手机
         * money : 7788.00
         * back_money : 5000.00
         * gid : 2
         * transport_no :
         * is_resell : 2
         * resell_id :
         */

        private String order_id;
        private String img;
        private String goods_name;
        private String money;
        private String back_money;
        private String gid;
        private String transport_no;
        private int is_resell;
        private String resell_id;
        private String type;

        public String getOrder_id() {
            return order_id;
        }

        public void setOrder_id(String order_id) {
            this.order_id = order_id;
        }

        public String getImg() {
            return img;
        }

        public void setImg(String img) {
            this.img = img;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getMoney() {
            return money;
        }

        public void setMoney(String money) {
            this.money = money;
        }

        public String getBack_money() {
            return back_money;
        }

        public void setBack_money(String back_money) {
            this.back_money = back_money;
        }

        public String getGid() {
            return gid;
        }

        public void setGid(String gid) {
            this.gid = gid;
        }

        public String getTransport_no() {
            return transport_no;
        }

        public void setTransport_no(String transport_no) {
            this.transport_no = transport_no;
        }

        public int getIs_resell() {
            return is_resell;
        }

        public void setIs_resell(int is_resell) {
            this.is_resell = is_resell;
        }

        public String getResell_id() {
            return resell_id;
        }

        public void setResell_id(String resell_id) {
            this.resell_id = resell_id;
        }

        public String getResllString() {

            if (this.is_resell == 1) {
                return "已转卖";
            } else {
                if ("2".equals(getType())) {
                    return "详情";
                } else {
                    return "转卖";
                }

            }
        }

        /**
         * 支付方式 1信用额度 2支付宝
         *
         * @return
         */
        public String getType() {
            return type;
        }

        public void setType(String type) {
            this.type = type;
        }
    }
}
